<?php
Class module_admin extends module {
	
	function __call($name, $arg) {
		config::getInstance()->style = "admin";		
		$this->output();
	}
	
	function debug_video() {
		config::getInstance()->style = "admin";
		$q = request::get("q");
		if ($q) {
			$this->videos = youtube::getVideos($q, 1, 30);
		}
		if (request::get("truncate")) {
			$db = db::getInstance();
			$db->update_sql("TRUNCATE TABLE `video`");
			echo "TRUNCATED";
		}
		$this->output();
	}
}
?>